<?php

namespace App\Models\GameServer;

use Illuminate\Database\Eloquent\Model;

class PlayRecordDetail extends Model
{
    protected $table = 'jeton_change_of_playing_game';
    protected $primaryKey = 'id';
    protected $connection = 'game_server';

    public function room()
    {
        return $this->belongsTo('App\Models\GameRoom', 'room_id', 'room_id');
    }

    public function getResultTimeAttribute($value)
    {
        return date('Y-m-d H:i:s', $value);
    }
}
